package p270jp.pxv.android.commonObjects.model;

import java.util.Iterator;
import p270jp.pxv.android.commonObjects.model.NotificationSettingMethod;
import p325m0.MutabilityOwnership;

/* compiled from: NotificationSettingType.kt */
/* renamed from: jp.pxv.android.commonObjects.model.NotificationSettingTypeKt */
/* loaded from: classes2.dex */
public final class NotificationSettingTypeKt {
    public static final NotificationSettingMethod pushMethod(NotificationSettingType notificationSettingType) {
        Object obj;
        boolean z;
        MutabilityOwnership.m3745m(notificationSettingType, "<this>");
        Iterator<T> it = notificationSettingType.getAvailableMethods().iterator();
        while (true) {
            if (!it.hasNext()) {
                obj = null;
                break;
            }
            obj = it.next();
            if (((NotificationSettingMethod) obj).getMethod() == NotificationSettingMethod.MethodName.PUSH) {
                z = true;
                continue;
            } else {
                z = false;
                continue;
            }
            if (z) {
                break;
            }
        }
        return (NotificationSettingMethod) obj;
    }

    public static final NotificationSettingMethod screenMethod(NotificationSettingType notificationSettingType) {
        Object obj;
        boolean z;
        MutabilityOwnership.m3745m(notificationSettingType, "<this>");
        Iterator<T> it = notificationSettingType.getAvailableMethods().iterator();
        while (true) {
            if (!it.hasNext()) {
                obj = null;
                break;
            }
            obj = it.next();
            if (((NotificationSettingMethod) obj).getMethod() == NotificationSettingMethod.MethodName.SCREEN) {
                z = true;
                continue;
            } else {
                z = false;
                continue;
            }
            if (z) {
                break;
            }
        }
        return (NotificationSettingMethod) obj;
    }
}
